﻿@model WmWebSystem.Models.Project

@{
    ViewBag.Title = "项目编辑视图";
    Layout = "~/Views/Shared/_Layout_manage.cshtml";
}

<div class="contentcontainer">
    <div class="headings">
        <h2>项目信息</h2>
    </div>
    <div class="contentbox">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <thead>
            <tr>
                <th>编号</th>
                <th>名称</th>
                <th>状态</th>
                <th>集资</th>
                <th>管理</th >
                <th><input name="" type="checkbox" value="" id="checkboxall" /></th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>
                    @Html.DisplayFor(model => model.ProjectNo)
                </td>
                <td>
                    @Html.DisplayFor(model => model.ProjectName)
                </td>
                <td>
                    @Html.DisplayFor(model => model.Type)
                </td>
                <td>
                    @Html.DisplayFor(model => model.TargetValue)
                </td>
                <td>
                    <a href="@Url.Action("Edit", "Project", new { id = Model.ProjectId })" title=""><img src="@Url.Content("~/Content/zone/img/icons/icon_edit.png")" alt="Edit" /></a>
                    <a href="@Url.Action("ProjectView", "Project", new { No = Model.ProjectNo })" title=""><img src="@Url.Content("~/Content/zone/img/icons/icon_approve.png")" alt="Details" /></a>
                    <a href="@Url.Action("Delete", "Project", new { id = Model.ProjectId })" title=""><img src="@Url.Content("~/Content/zone/img/icons/icon_delete.png")" alt="Delete" /></a>
                </td>
                <td>
                    <input type="checkbox" value="@Model.ProjectId" name="checkall" />
                </td>
            </tr>
            </tbody>
            </table>

            <a href="@Url.Action("Create", "Item", new { pno = Model.ProjectNo })" class="button_link">添加项目附件</a> |
            @using (Html.BeginForm("Publish", "Project", FormMethod.Post, new { enctype = "multipart/form-data" }))
            {
                <input type="submit" value="完成项目 >>" class="myInput_Buttom" />
            }
        <div style="clear: both;"></div>
    </div>
</div>
<div class="contentcontainer">
    <div class="headings altheading">
        <h2>项目附件列表</h2>
    </div>
    <div class="contentbox">
        <table>
            <thead>
               <tr>
                   <th>附件编码</th>
                   <th>附件名称</th>
                   <th>管理</th >
                   <th><input name="" type="checkbox" value="" id="checkboxall" /></th>
                </tr>
            </thead>
            <tbody>
            @foreach (var item in (IEnumerable<WmWebSystem.Models.ChildProject>)ViewData["ChildProjects"])
            {
                <tr>
                    <td>@item.ProjectNo</td>
                    <td>@item.ChildName</td>
                    <td>
                        <a href="@Url.Action("Edit", "Item", new { id = item.ChildProjectId })" title=""><img src="@Url.Content("~/Content/zone/img/icons/icon_edit.png")" alt="Edit" /></a>
                        <a href="@Url.Action("Details", "Item", new { id = item.ChildProjectId })" title=""><img src="@Url.Content("~/Content/zone/img/icons/icon_approve.png")" alt="Details" /></a>
                        <a href="@Url.Action("Delete", "Item", new { id = item.ChildProjectId })" title=""><img src="@Url.Content("~/Content/zone/img/icons/icon_delete.png")" alt="Delete" /></a>
                    </td>
                    <td>
                        <input type="checkbox" value="@Model.ProjectId" name="checkall" />
                    </td>
                </tr>
            
            }
           </tbody>
        </table> 
        <div style="clear: both;"></div>
    </div>     
</div>


